home *** CD-ROM | disk | FTP | other *** search
/ PC Home 48 / Fun Clicp Art 5000.iso / r / mbm / 00803_SU-RN co.ls < prev    next >
Encoding:
Text File  |  1996-05-11  |  8.0 KB  |  204 lines

  1. on renseigne txt1, sty1, txt2, sty2, nCurs
  2.   set the textStyle of field "ZI4" to sty1
  3.   set the text of field "ZI4" to txt1
  4.   set the textStyle of field "ZI5" to "plain"
  5.   set the textStyle of field "ZI5" to sty2
  6.   set the text of field "ZI5" to txt2
  7.   curseur(nCurs)
  8. end
  9.  
  10. on exitFrame
  11.   global gLocLabel
  12.   go(label(gLocLabel))
  13. end
  14.  
  15. on idle
  16.   global gBarChron, gSurvolAct, gSurvolPrec, gListSuj, gMaxBoutons, gEtaSpir, gSujet0, gSujet1, g1erSprChr, g1erSprNav, g1erSprLoc, gListCod, gEtudAct, gEtatEtud, gMessDef1, gMessDef2, gMessSty1, gMessSty2, gSprVideo1, gActVideo1, gPartie, gTraduit
  17.   if not (the mouseDown) then
  18.     set MsCast to the mouseCast
  19.     if MsCast > 0 then
  20.       if not gEtaSpir then
  21.         set gSurvolAct to 0
  22.         repeat with monSpr = g1erSprChr to gMaxBoutons
  23.           if rollOver(monSpr) and (the castNum of sprite monSpr <> 0) and the visible of sprite monSpr then
  24.             set gSurvolAct to monSpr
  25.             exit repeat
  26.           end if
  27.         end repeat
  28.         if gSurvolAct <> gSurvolPrec then
  29.           if gSurvolAct <> 0 then
  30.             if (gSurvolAct >= g1erSprChr) and (gSurvolAct <= (g1erSprChr + 9)) then
  31.               gBarChron(survol, gSurvolAct, the number of cast "ZI4")
  32.             end if
  33.             if gSurvolAct = g1erSprNav then
  34.               renseigne(getAt(gTraduit, 12), "bold", " ", gMessSty2, 1)
  35.             end if
  36.             if gSurvolAct = (g1erSprNav + 1) then
  37.               renseigne(getAt(gTraduit, 26) && getAt(gTraduit, 3), "bold", " ", gMessSty2, 7)
  38.             end if
  39.             if gSurvolAct = (g1erSprNav + 2) then
  40.               renseigne(getAt(gTraduit, 1) && getAt(gTraduit, 2) && getAt(gTraduit, 5), "bold", " ", gMessSty2, 7)
  41.             end if
  42.             if gSurvolAct = (g1erSprNav + 3) then
  43.               renseigne(getAt(gTraduit, 1) && getAt(gTraduit, 2) && getAt(gTraduit, 4), "bold", " ", gMessSty2, 7)
  44.             end if
  45.             if gSurvolAct = (g1erSprNav + 4) then
  46.               renseigne(getAt(gTraduit, 1) && getAt(gTraduit, 2) && getAt(gTraduit, 7), "bold", " ", gMessSty2, 7)
  47.             end if
  48.             if gSurvolAct = (g1erSprNav + 5) then
  49.               renseigne(getAt(gTraduit, 27), "bold", " ", gMessSty2, 1)
  50.             end if
  51.             if gSurvolAct = (g1erSprNav + 6) then
  52.               renseigne(getAt(gTraduit, 28), "bold", " ", "bold", 1)
  53.             end if
  54.             if (gSurvolAct >= (g1erSprLoc + 4)) and (gSurvolAct <= (g1erSprLoc + 5)) then
  55.               set monAct to word 1 of the name of cast MsCast
  56.               set monEtat to word 2 of the name of cast MsCast
  57.               set monTxt1 to " "
  58.               set monTxt2 to " "
  59.               set monCur to -1
  60.               if monEtat = "0" then
  61.                 set monTxt1 to getAt(gTraduit, 36)
  62.                 set monTxt2 to gSujet0(Le_Nom)
  63.                 set monCur to 7
  64.               else
  65.                 if monEtat = "1" then
  66.                   set monTxt1 to getAt(gTraduit, 37)
  67.                   set moncod to gSujet0(Le_NumPar)
  68.                   set monSuj to getAt(gListSuj, moncod)
  69.                   set monTxt2 to monSuj(Le_Nom)
  70.                   set monCur to 7
  71.                 else
  72.                   nothing()
  73.                 end if
  74.               end if
  75.               renseigne(monTxt1, "bold", monTxt2, "bold italic", monCur)
  76.             end if
  77.             if ((gSurvolAct >= g1erSprLoc) and (gSurvolAct <= (g1erSprLoc + 3))) or ((gSurvolAct >= (g1erSprLoc + 6)) and (gSurvolAct <= (g1erSprLoc + 9))) then
  78.               set monAct to char 3 to 4 of word 1 of the name of cast MsCast
  79.               set monTxt1 to " "
  80.               set monTxt2 to " "
  81.               set monCur to 1
  82.               if (monAct = "SU") or (monAct = "CO") or (monAct = "HI") or (monAct = "EN") then
  83.                 if gEtudAct = monAct then
  84.                   set monTxt1 to getAt(gTraduit, 40)
  85.                   set monCur to 7
  86.                 else
  87.                   set monTxt1 to getAt(gTraduit, 41)
  88.                 end if
  89.                 if monAct = "SU" then
  90.                   set monTxt2 to getAt(gTraduit, 32)
  91.                 end if
  92.                 if monAct = "CO" then
  93.                   set monTxt2 to getAt(gTraduit, 33)
  94.                 end if
  95.                 if monAct = "HI" then
  96.                   set monTxt2 to getAt(gTraduit, 34)
  97.                   set monCur to 7
  98.                 end if
  99.                 if monAct = "EN" then
  100.                   set monTxt2 to getAt(gTraduit, 35)
  101.                 end if
  102.               else
  103.                 if char 1 of gPartie = char 1 of monAct then
  104.                   set monTxt1 to getAt(gTraduit, 42)
  105.                   set monCur to 7
  106.                 else
  107.                   if gEtatEtud = " " then
  108.                     set monTxt1 to getAt(gTraduit, 39)
  109.                   else
  110.                     set monTxt1 to getAt(gTraduit, 43)
  111.                   end if
  112.                 end if
  113.                 if char 1 of monAct = "B" then
  114.                   set monTxt2 to getAt(gTraduit, 47)
  115.                   set monCur to 7
  116.                 end if
  117.                 if char 1 of monAct = "C" then
  118.                   set monTxt2 to getAt(gTraduit, 45)
  119.                   set monCur to 7
  120.                 end if
  121.                 if char 1 of monAct = "T" then
  122.                   set monTxt2 to getAt(gTraduit, 44)
  123.                 end if
  124.                 if char 1 of monAct = "S" then
  125.                   set monTxt2 to getAt(gTraduit, 46)
  126.                   set monCur to 7
  127.                 end if
  128.               end if
  129.               renseigne(monTxt1, "bold", monTxt2, "bold", monCur)
  130.             end if
  131.             if (gSurvolAct >= (g1erSprLoc + 10)) and (gSurvolAct <= (g1erSprLoc + 14)) then
  132.               set monTxt1 to " "
  133.               set monTxt2 to " "
  134.               set monCur to 1
  135.               set nomBt to word 1 of the name of cast MsCast
  136.               if nomBt = "BTPEJC" then
  137.                 set monTxt1 to getAt(gTraduit, 48)
  138.                 set monTxt2 to " "
  139.               end if
  140.               if nomBt = "BTPOEI" then
  141.                 set monTxt1 to gMessDef1
  142.                 set monTxt2 to getAt(gTraduit, 55)
  143.               end if
  144.               if nomBt = "BTPOEF" then
  145.                 set monTxt1 to gMessDef1
  146.                 set monTxt2 to getAt(gTraduit, 56)
  147.               end if
  148.               if nomBt = "BTPVID" then
  149.                 set monTxt1 to getAt(gTraduit, 54)
  150.                 set monTxt2 to getAt(gTraduit, 57)
  151.                 set monCur to 7
  152.               end if
  153.               if nomBt = "BTGMOL" then
  154.                 set monCur to 8
  155.                 set monTxt1 to gMessDef1
  156.                 set monTxt2 to getAt(gTraduit, 51)
  157.               end if
  158.               if nomBt = "BTGRWS" then
  159.                 set monTxt1 to gMessDef1
  160.                 set monTxt2 to getAt(gTraduit, 58)
  161.               end if
  162.               if nomBt = "BTGAVS" then
  163.                 set monTxt1 to gMessDef1
  164.                 set monTxt2 to getAt(gTraduit, 59)
  165.               end if
  166.               if nomBt = "BTGVID" then
  167.                 set monTxt1 to gMessDef1
  168.                 set monTxt2 to getAt(gTraduit, 60)
  169.                 set monCur to 7
  170.               end if
  171.               renseigne(monTxt1, "bold", monTxt2, "bold", monCur)
  172.             end if
  173.           else
  174.             set monEpok to gSujet0(Le_Epoque)
  175.             gBarChron(fleche, 1, monEpok, 0)
  176.             if gSujet1 <> 0 then
  177.               set monEpok2 to gSujet1(Le_Epoque)
  178.               gBarChron(fleche, 1, monEpok2, 1)
  179.             else
  180.               gBarChron(fleche, 0, monEpok, 1)
  181.             end if
  182.             renseigne(gMessDef1, gMessSty1, gMessDef2, gMessSty2, -1)
  183.           end if
  184.           set gSurvolPrec to gSurvolAct
  185.         end if
  186.       else
  187.         if MsCast > 0 then
  188.           if the number of words in the name of cast MsCast = 2 then
  189.             if (word 2 of the name of cast MsCast = "1") or (word 2 of the name of cast MsCast = "0") then
  190.               curseur(1)
  191.             else
  192.               curseur(-1)
  193.             end if
  194.           else
  195.             curseur(-1)
  196.           end if
  197.         else
  198.           curseur(-1)
  199.         end if
  200.       end if
  201.     end if
  202.   end if
  203. end
  204.